package com.guoning.office_system.mapper;

import com.guoning.office_system.model.Department;
import com.guoning.office_system.model.DepartmentWithUser;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("DepartmentMapper")
public interface DepartmentMapper {
    List<Department> selectAll(Criteria criteria);

    List<DepartmentWithUser> selectByCondition(Criteria criteria);

    Long selectByConditionCount(Criteria criteria);

    int updateFordelete(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
}